package com.material.c2c.classify.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.material.c2c.classify.entity.SPFL;
import com.material.c2c.classify.model.ClassifyDTO;
import com.material.c2c.core.dao.EntityDao;

public interface ClassifyDao extends EntityDao<SPFL, String>{
	/**
	 * 查询是否有下级分类
	 * @param id
	 * @return
	 */
	int countByPid(String id);
	/**
	 * 分页查询
	 * @param request
	 * @param pid
	 * @return
	 */
	Page<ClassifyDTO> findByPid(Pageable request,String pid,String key);
	/**
	 * 分页查询所有分类
	 * @param request
	 * @return
	 * @since 1.0
	 * @version 1.0
	 */
	Page<ClassifyDTO> findAll(Pageable request);
}
